import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginPage } from '../login/login.page';

// const routes: Routes = [
//     {
//       path: 'login',
//       component: LoginPage,
//     },
//     {
//       path: '',
//       redirectTo: '/tabs/(home:home)',
//       pathMatch: 'full'
//     }
//   ];

const routes: Routes = [
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class HomeRoutingModule { }